package com.lwq.designpattern.structuralPatterns.proxyPattern.dynamicCglibProxy;

/**
 * @ClassName
 * @Description cglib 动态模式
 * @Author liwq
 * @Date 2021/4/29 16:30
 * @Version 1.0
 */
public class CglibProxyDemo {
    public static void main(String[] args) {
        IOrder iOrder = new IOrder();
        IOrder proxy = (IOrder) new CglibProxyFactory(iOrder).getProxyInstance();

        //执行代理对象的方法
        proxy.save();


    }
}
